<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"D:\phpStudy\WWW\fastAdmin\public/../application/food\view\auth\login.html";i:1526517885;s:64:"D:\phpStudy\WWW\fastAdmin\application\food\view\common\base.html";i:1526525827;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>
    
    走心更走胃-登录页面

    </title>
    <link rel="stylesheet" type="text/css" href="/static/css/index.css" />
    
    <link rel="stylesheet" href="static/css/login.css">

</head>

<body>
<!--头部开始-->
<header>
    <div class="logo"><img src="/static/images/logo.jpg" alt="" class="lazyload"></div>
    <div class="nav">
        <ul>
            <li><a href="/food">首页</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">热量计算</a></li>
            <li><a href="food/comment">网站反馈</a></li>
        </ul>
    </div>
    <div class="search">
        <form action="/list">
            <input type="text" name="name">
        </form>
        <img src="/static/images/search.png" class="searchBtn lazyload">
    </div>
    <div class="login">
        <ul>
            <?php if(null ===\think\Session::get('user')): ?>
            <li><a href="<?php echo url('food/auth/register'); ?>">注册</a></li>
            <li><a href="<?php echo url('food/auth/login'); ?>">登录</a></li>
            <?php else: ?>
            <li style="margin-left: -20px;"><a href="#">欢迎您，<?php echo \think\Session::get('user.phone'); ?></a></li>
            <li><a href="/logout">退出</a></li>
            <?php endif; ?>
        </ul>
    </div>
</header>
<!--头部结束-->



<div class="wrapper">
    
    <div class="register">
            <div class="r-t">欢迎登录 <i>Welcome to login</i></div>
            <div class="r-b">
                <div class="b-l">
                    <img src="static/images/register/reg3.jpg">
                </div>  
                <div class="b-r">
                    <p style="width: 300px; text-indent: 25px;">快速登录<span style="font-size: 14px;margin-left: 10px;"><?php echo \think\Session::get('loginError'); ?></span></p>
                    <form action="/login" method="post">
                        <p><input type="text" name="phone" placeholder="请您输入手机号码" value="<?php echo \think\Session::get('loginphone'); ?>"></p>
                        <p><input type="password" name="password" placeholder="请您输入您的密码"></p>
                        <p style="overflow: hidden;">
                            <input type="text" name="captcha" placeholder="请您输入验证码" style="width: 100px;float: left;">
                            <img src="/verify" alt="captcha" style="float: right;" onclick="this.src='/verify/'+Math.random()"/>
                        </p>
                        <button type="submit" class="liji">立即登录</button>
                    </form>
                </div>  
            </div>
        </div>

    <footer>
        <!--底部开始-->
        <div class="line">
            <h3>走胃更走心---吃得健康又营养!</h3>
        </div>
        <p class="link">友情链接: <a href="http://life.iqiyi.com/">爱奇艺生活</a> <a href="http://www.zhms.cn/">中华美食网</a>
            <a href="http://www.pcbaby.com.cn/">太平洋亲子网</a> <a href="http://food.poco.cn/">POCO美食网</a>
            <a href="http://www.21food.cn/">食品商务网</a> <a href="http://www.mama.cn/">妈妈网</a>
            <a href="http://www.39yst.com/">三九养生堂</a> <a href="http://www.258.com/">企业服务平台</a>
            <a href="http://www.yidianzixun.com/">一点资讯</a> <a href="http://www.hc360.com/">慧聪网</a>
        </p>
        <p class="copyright">版权所有 © 2004-2019 走心更走胃 保留所有权利</p>
        <!--底部结束-->
    </footer>
</div>
<script src="/static/js/jquery-1.11.1.js"></script>
<script src="/static/js/slider.min.js"></script>
<script type="text/javascript" src="//cdn.bootcss.com/jquery.lazyload/1.9.1/jquery.lazyload.min.js" ></script>

</body>
</html>